package com.qf.team2.netdisc.common.pojo.qo;

import java.util.Objects;

/**
 * 文件参数实体:
 *
 * @author Simon_Wong
 * @date 2021/05/26 10:21
 */
@SuppressWarnings("AlibabaClassNamingShouldBeCamel")
public class DocumentQO {
    /**
     * 用户id
     */
    private Integer userId;
    /**
     * 文件id
     */
    private Integer fileId;
    /**
     * 文件大小
     */
    private Integer fileSize;

    /**
     * 文件名称
     */
    private String fileName;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getFileId() {
        return fileId;
    }

    public void setFileId(Integer fileId) {
        this.fileId = fileId;
    }

    public Integer getFileSize() {
        return fileSize;
    }

    public void setFileSize(Integer fileSize) {
        this.fileSize = fileSize;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        DocumentQO that = (DocumentQO) o;
        return userId.equals(that.userId) && fileId.equals(that.fileId) && fileSize.equals(that.fileSize);
    }

    @Override
    public int hashCode() {
        return Objects.hash(userId, fileId, fileSize);
    }

    @Override
    public String toString() {
        return "DocumentQO{" +
                "userId=" + userId +
                ", fileId=" + fileId +
                ", fileSize=" + fileSize +
                '}';
    }
}
